package com.jd.jr.insights.dm.dim.util.easyui.paginate;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/7/30.
 */
public class Pagger {

    public static final int PAGE_SIZE=20;
    /**
     * 数据条数总值
     */
    private int totalRow;
    /**
     * 总页数
     */
    private int totalPage;
    /**
     * 当前第几页
     */
    private int pageNum;
    private List<?> rows=new ArrayList<Object>();

    public Pagger(int totalRow, int totalPage, int pageNum, List<?> rows) {
        this.totalRow = totalRow;
        this.totalPage = totalPage;
        this.pageNum = pageNum;
        this.rows = rows;
    }

    public Pagger(int totalRow, int pageNum, List<?> rows) {
        this.totalRow = totalRow;
        this.pageNum = pageNum;
        this.rows = rows;
    }

    public Pagger() {
    }

    public int getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(int totalRow) {
        this.totalRow = totalRow;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}
